/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : eeprom.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright (c) 2024 STMicroelectronics.
  * All rights reserved.</center></h2>
  *
  * This software component is licensed by ST under BSD 3-Clause license,
  * the "License"; You may not use this file except in compliance with the
  * License. You may obtain a copy of the License at:
  *                        opensource.org/licenses/BSD-3-Clause
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __EEPROM_CTRL_H
#define __EEPROM_CTRL_H
#include "stm32f4xx_hal.h"
#include "stdint.h"

extern void AT24C16A_Test(void);

//extern HAL_StatusTypeDef AT24C16A_Read(uint16_t readAddr, uint8_t *pBuffer, uint16_t numToRead);
//extern HAL_StatusTypeDef AT24C16A_Write(uint16_t writeAddr, uint8_t *pBuffer, uint16_t numToWrite);
uint8_t AT24C16A_Write(uint16_t addr, uint8_t *data, uint16_t len);
uint8_t AT24C16A_Read(uint16_t addr, uint8_t *data, uint16_t len);

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/




#ifdef __cplusplus
}
#endif

#endif /* __DISPLAY_CTRL_H */

/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
